%% --------------------------------
%% author:wtzhu
%% email:wtzhu_13@163.com
%% date: 20210401
%% fuction: 
%% --------------------------------
clear all; close all;
I=imread('./images/translated_rectangle.tif');
K=fft2(I);
K=fftshift(K);
L=abs(K/256);
figure;
subplot(131);
imshow(I);
subplot(132);
imshow(uint8(L));
subplot(133);
imshow(abs(K),[]);